# -*- coding: utf-8 -*-

"""
2.食堂类定义及包含设置就餐人数方法
"""
class Canteen:
	"""name: 食堂名称
	   numOfDiners: 就餐人数"""
	name = ''
	numOfDiners = 0 # 默认就餐人数为0

	def __init__(self, name):
		self.name = name

	def print(self):
		print("食堂:{0}, 已就餐人数:{1}".format(self.name, self.numOfDiners))

	def add_number(self, numOfDiners):
		self.numOfDiners = numOfDiners